package com.qst.service;

import com.qst.beans.PageUtils;
import com.qst.beans.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductService {
    List<Product> findAllByHot();
    List<Product> findByNew();
    Product findById(Integer id);

    List<Product> findAll();

    int save(Product product);

    int deleteByid(Integer id);

    int update(Product product);

    PageUtils<Product> getProductsMH(Integer page,@Param("pName")String pName);

    List<Product> recomendProduct(@Param("uid")Integer uid);
}
